package cn.iocoder.yudao.module.mqtt.controller.admin.commport.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 通讯口配置分页 Request VO")
@Data
public class CommPortPageReqVO extends PageParam {

    @Schema(description = "通讯口名称", example = "张三")
    private String portName;

    @Schema(description = "波特率")
    private String baudRate;

    @Schema(description = "数据位")
    private String dataBits;

    @Schema(description = "校验位")
    private String parity;

    @Schema(description = "停止位")
    private String flowControl;

    @Schema(description = "流控制（可选）")
    private String subTopics;

    @Schema(description = "描述", example = "你说的对")
    private String description;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}